package day8;

public class GoodsTest {
    public static void main(String[] args) {
        Goods []arr=new Goods[3];
        arr[0]=new Goods("001","小米13",5999,500);
        arr[1]=new Goods("002","苹果14",5999,500);
        arr[2]=new Goods("003","华为p40",5999,500);
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i].getId()+","+arr[i].getName()+","+arr[i].getCount()+","+arr[i].getPrice());
        }
    }
}
